package com.kuwou.workobject.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("all_rank_list")
public class RankList {

    @TableId(value = "`id`",type = IdType.AUTO)
    private int id;

    @TableField("`name`")
    private String name;

    @TableField("`channel_id`")
    private int channelId;

    @TableField("`size`")
    private int size;

    @TableField("`update_time`")
    private LocalDateTime updateTime;

    public RankList(String name, int channelId,int size, LocalDateTime updateTime) {
        this.updateTime = updateTime;
        this.channelId = channelId;
        this.size = size;
        this.name = name;
    }
}
